function db(sql,callback) {
  const mysql      = require('mysql');
  const connection = mysql.createConnection({
    host     : 'localhost',
    user     : 'root',
    password : '123456',
    database : 'carmail'
  });
  
  connection.connect();
  connection.query(sql, callback);
  connection.end();
}

module.exports=db